﻿<UserControl x:Class="ICSharpCode.WpfDesign.Designer.OutlineView.Outline"
             x:Name="root"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:Default="clr-namespace:ICSharpCode.WpfDesign.Designer.OutlineView">
	
	<UserControl.Resources>
		
		<HierarchicalDataTemplate DataType="{x:Type Default:OutlineNode}"
		                          ItemsSource="{Binding Children}">
			<Default:IconItem Icon="../Images/Tag.png"
			                  Text="{Binding Name}" />
		</HierarchicalDataTemplate>
	
	</UserControl.Resources>
	
	<Default:OutlineTreeView Root="{Binding Root, ElementName=root}">
		<ItemsControl.ItemContainerStyle>
			<Style TargetType="{x:Type Default:DragTreeViewItem}">
				<Setter Property="IsSelected"
				        Value="{Binding IsSelected}" />
				<Setter Property="IsExpanded"
				        Value="{Binding IsExpanded, Mode=TwoWay}" />
			</Style>
		</ItemsControl.ItemContainerStyle>
	</Default:OutlineTreeView>

</UserControl>
